home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Larry Magid's Essential Internet
/
Larry Magid's Essential Internet (Quarterdeck Corporation)(1995).ISO
/
qsockpro.qip
/
WLN.MPS
< prev
next >
Wrap
Text File
|
1995-10-09
|
2KB
|
70 lines
# WLN PPP script
# Copyright 1995 Quarterdeck Corporation
# Authored 5/16/95 Kevin Flick
#define the variables we will need
STRING username
STRING password
STRING framing
STRING IPAddress
# uncomment for debugging
#TRACE ON
# reset maximum login timeout.
SetTimeout 90
CfgGetValue "Username" username
IF result = 0 THEN
GetInput "Enter your user name" username
IF result = 0 THEN
PRINT "Warning, no username entered"
ELSE
PRINT "Username set to ["; username; "]"
ENDIF
ENDIF
# get password from access method
# if the Password field is empty, prompt the user for it.
CfgGetValue "Password" password
IF result = 0 THEN
GetPassword "Enter your password" password
IF result = 0 THEN
PRINT "Warning, no password entered"
ELSE
# NOTE: Don't print password.
PRINT "Password set."
ENDIF
ENDIF
# get framing... PPP or SLIP
CfgGetValue "Framing" framing
IF result = 0 THEN
ABORT "Cannot get framing (SLIP or PPP) ot of Qdeck.ini.%r"
ENDIF
CommWaitFor "ogin:" # wait for login prompt
#DELAY 5
CommSend username # send user name
CommSend "%r" # send carriage return
CommWaitFor "assword" # wait for password prompt
#DELAY 5
CommSend password # send password
CommSend "%r" # send carriage return
CommWaitFor "==>"
IF framing = "MPPPP" THEN
CommSend "ppp%r"
ELSE
CommSend "slip%r"
CommReadIPAddr IPAddress
IF result>0 THEN
CfgSetValue "IPAddress" IPAddress
PRINT "%rIP Address set to ["; IPAddress; "]"
ENDIF
ENDIF
END